home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6033 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: mars.hyperk.com!usenet
  2. From: jag@srv.net (Jim Galbraith)
  3. Newsgroups: comp.lang.c++
  4. Subject: VC++ 4.0 - KILLFOCUS/SETFOCUS in Dialog App.
  5. Date: Sun, 11 Feb 1996 19:05:49 GMT
  6. Organization: HyperK a Division of Scientech, Inc.
  7. Message-ID: <4flf9t$ggp@mars.hyperk.com>
  8. NNTP-Posting-Host: pm_ras84.srv.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Help!!
  12. I am developing some utilities that are set up as a dialog-based
  13. applications.  The problem I am having is this:  When I loose or gain
  14. keyboard focus (KILLFOCUS/SETFOCUS) I want to be able to release or
  15. regain control over some devices.  The problem is I cann't seem to get
  16. notified when I am either loosing or receiving the keyboard focus.  I
  17. have tried everything I know (which obviously isn't everything) to
  18. detect the KILLFOCUS/SETFOCUS messages, but they don't seem to be
  19. presented to my app.  I've tried the obvious functions (WM_KILLFOCUS)
  20. presented by the Class Wizard, and watching messages pass through the
  21. PreTranslateMessage() function.  Both without seeing the message show
  22. up.  
  23.  
  24. Anybody out there done this or know how to detect the loss of focus
  25. from a dialog based app?  Any info is greatly apprecieated.
  26.  
  27. Jim Galbraith
  28. jag@srv.net
  29.  
  30.